import request from '@/utils/request'

// 查询工序生产设施信息列表
export function listEquip(query) {
  return request({
    url: '/carbonEmission/equip/list',
    method: 'get',
    params: query
  })
}

// 查询工序生产设施信息列表(分页)
export function pageEquip(query) {
  return request({
    url: '/carbonEmission/equip/page',
    method: 'get',
    params: query
  })
}

// 查询工序生产设施信息详细
export function getEquip(id) {
  return request({
    url: '/carbonEmission/equip/get/' + id,
    method: 'get'
  })
}

// 新增工序生产设施信息
export function addEquip(data) {
  return request({
    url: '/carbonEmission/equip/add',
    method: 'post',
    data: data
  })
}

// 修改工序生产设施信息
export function updateEquip(data) {
  return request({
    url: '/carbonEmission/equip/edit',
    method: 'post',
    data: data
  })
}

// 删除工序生产设施信息
export function delEquip(id) {
  return request({
    url: '/carbonEmission/equip/remove/' + id,
    method: 'post'
  })
}
